<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
$this->load->helper('url');
?><link rel="stylesheet" type="text/css" href="/static/css/upload.css">
<form id="ff" method="post" style="margin:10px 0px 0px 10px;display:block;">
	<input type="hidden" name="id" value="<?php echo $id;?>">
	<table style="font-size:12px;" cellspacing="5">
		<tr>
			<td>帐号</td>
			<td><?php echo $username;?></td>
		</tr>
		<tr>
			<td>姓名</td>
			<td><?php echo $name;?></td>
		</tr>
		<tr>
			<td>证件类型</td>
			<td><?php echo $idtype_name;?></td>
		</tr>
		<tr>
			<td>证件号码</td>
			<td><?php echo $idno;?></td>
		</tr>
		<tr>
			<td>证件正面照片</td>
			<td>
			<img src="/upload/user/<?php echo $pic_front;?>" width=200>
			</td>
		</tr>
		<tr>
			<td>证件背面照片</td>
			<td>
			<img src="/upload/user/<?php echo $pic_back;?>" width=200>
			</td>
		</tr>
		
		<tr>
			<td>手持证件照片</td>
			<td>
			<img src="/upload/user/<?php echo $pic_hand;?>" width=200>
			</td>
		</tr>
		<tr>
			<td>回复说明</td>
			<td><input type="text" class="easyui-validatebox" name="info">不通过时候，给会员的提示</td>
		</tr>
		<tr>
			<td>是否通过</td>
			<td>
				<input type="radio" class="easyui-validatebox" name="status" value="2" checked>否
				<input type="radio" class="easyui-validatebox" name="status" value="1">是
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
			<button type="submit" class="easyui-linkbutton" iconCls="icon-ok">提交</button>
			</td>
		</tr>
	</table>
</form>

<script language="javascript">
$(function(){
	$('#ff').form({
		url:'<?php echo site_url('pic_apply/update');?>',
		onSubmit:function(){
		    if(!confirm('确定提交吗？提交之后不能更改')) return false;
			return $(this).form('validate');
		},
		success:function(data){
			data = eval('('+data+')');
			$.messager.alert('信息提示',data.msg,'info');
			if(data.error == 0){
				$('#win').window('close');
				$('#tt').datagrid('reload');
			}
		}
	});
});
</script>